import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import request from '@/utils/utils.js';
import XLSX from '@/node_modules/xlsx/xlsx.mjs';
uni.addInterceptor('request', {
	invoke: (config) => {
		const token = uni.getStorageSync('USER_INFO').token || ''
		config.header = {...config.header,token}
	}
})
Vue.prototype.$api = request
Vue.prototype.$xlsx = XLSX

// main.js
import uView from "uview-ui";
Vue.use(uView);


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif